#coding:utf-8
import sys
from PyQt5 import uic
from PyQt5.QtWidgets  import QApplication
from PyQt5.QtWidgets import QMainWindow

class Calc(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self)
        uic.loadUi('calc.ui',self)
        self.pushButton0.clicked.connect(self.f)        
        self.pushButton1.clicked.connect(self.f)                
        self.pushButton2.clicked.connect(self.f)                
        self.pushButton3.clicked.connect(self.f)                
        self.pushButton4.clicked.connect(self.f)                
        self.pushButton5.clicked.connect(self.f)                
        self.pushButton6.clicked.connect(self.f)                
        self.pushButton7.clicked.connect(self.f)                
        self.pushButton8.clicked.connect(self.f)                
        self.pushButton9.clicked.connect(self.f)

        self.pushButton_clear.clicked.connect(self.f)                
        self.pushButton_divide.clicked.connect(self.f)                
        self.pushButton_dot.clicked.connect(self.f)                
        self.pushButton_eq.clicked.connect(self.f)                
        self.pushButton_min.clicked.connect(self.f)                
        self.pushButton_mul.clicked.connect(self.f)                
        self.pushButton_plus.clicked.connect(self.f)        




    def f(self):    
        print "我被点击次了"
            
         


if __name__ == '__main__':    
    app = QApplication(sys.argv)
    # print help(QApplication)
    calc = Calc()
    calc.show()
    app.exec_()




